#include "QT_1.h"

QT_1::QT_1(QWidget *parent)
    : QWidget(parent)
{
    ui.setupUi(this);
    //connect(ui.pushButton, &QPushButton::clicked, this, &QT_1::slot_1);
    //connect(ui.pushButton_2, &QPushButton::clicked, this, &QT_1::slot_2);
}

QT_1::~QT_1()
{}

void QT_1::slot_1()
{
    qDebug() << "!!!!!!!!!!!";
}

void QT_1::slot_2()
{
    bool enable = ui.pushButton->isEnabled();
    if (enable)
    {
        ui.pushButton->setEnabled(false);
    }
    else
    {
        ui.pushButton->setEnabled(true);
    }
}
